package com.eco
{
	import com.eco.*;
	import com.framework.*;
	
	import flash.display.MovieClip;
	import flash.events.*;
	import flash.utils.*;
	
	//爆炸道具，使卫士在旋风状态下撞击的敌人直接死亡
	public class BonusExplosive extends Bonus
	{
		public function BonusExplosive( )
		{
			super( 8, Bonus.BONUS_EXPLOSIVE);
			
			iFunctionTime = 6000;//6秒
		}
		
		override public function StartFunction():void
		{
			if( ftFighter == null )
				return;
			
			CreateSoundEvent( CustomEventSound.PLAY_SOUND, SoundInfo.EFF_BONUS_EXPLOSIVE_ACTIVE);
			
			ftFighter.bRage = true;//设定卫士狂暴标记为真
			
			super.StartFunction();
		}
		
		override public function StopFunction():void
		{
			ftFighter.bRage = false;
			
			super.StopFunction();
		}
	}
}